<?php 
//定义常亮
define('KEEP', realpath('./'));
define('CORE', KEEP.'/core');
define('APP', KEEP.'/app');
define('CTRL', 'app');
define('DEBUG', true);

if (DEBUG) {
    ini_set('display_error', 'On');
} else {
    ini_set('display_error', 'Off');
}

//加载库
include CORE.'/common/function.php';
//加载框架核心代码
include CORE.'/keep.php';

//new 一个不存在的类会触发的方法
spl_autoload_register('\core\keep::load');

//启动框架
\core\keep::run();
